﻿

using System.Collections.Generic;
using NTQOnlineExam.Services.Models;

namespace NTQOnlineExamFrontend.Models
{
  public class OrderHistoryViewModel
  {
      public IList<OrderDTO> Orders { get; set; }
      public int PageCount { get { return TotalRecords / PageSize + (TotalRecords % PageSize > 0 ? 1 : 0); } }
      public int SelectedPage { get; set; }
      public const int PageSize = 5;
      public int TotalRecords { get; set; }
  }
}